﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Renci.iRods.Common;

namespace Renci.iRods.Data
{
    public class RuleFunctionNameMap : DataItem
    {
        [iRodsColumn(DataObjectAttributes.COL_FNM_ID)]
        public long ID { get; internal set; }

        [iRodsColumn(DataObjectAttributes.COL_FNM_VERSION)]
        public string Version { get; internal set; }

        [iRodsColumn(DataObjectAttributes.COL_FNM_BASE_NAME)]
        public string BaseName { get; internal set; }

        [iRodsColumn(DataObjectAttributes.COL_FNM_EXT_FUNC_NAME)]
        public string ExitFunctionName { get; internal set; }

        [iRodsColumn(DataObjectAttributes.COL_FNM_INT_FUNC_NAME)]
        public string InitFunctionName { get; internal set; }

        [iRodsColumn(DataObjectAttributes.COL_FNM_STATUS)]
        public int Status { get; internal set; }

        [iRodsColumn(DataObjectAttributes.COL_FNM_OWNER_NAME)]
        public string OwnerName { get; internal set; }

        [iRodsColumn(DataObjectAttributes.COL_FNM_OWNER_ZONE)]
        public string OwnerZone { get; internal set; }

        [iRodsColumn(DataObjectAttributes.COL_FNM_COMMENT)]
        public string Comment { get; internal set; }

        [iRodsColumn(DataObjectAttributes.COL_FNM_CREATE_TIME)]
        public DateTime CreatedTime { get; internal set; }

        [iRodsColumn(DataObjectAttributes.COL_FNM_MODIFY_TIME)]
        public DateTime ModifiedTime { get; internal set; }

        internal RuleFunctionNameMap(IRodsConnection connection)
            : base(connection)
        {

        }
    }
}
